Optimal. Leaf size=352 \[ -\frac{2 e \left (2 a c e+b^2 (-e)+c x (2 c d-b e)+b c d\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} (e f-d g) \left (a e^2-b d e+c d^2\right )}+\frac{2 g \left (2 a c g+b^2 (-g)+c x (2 c f-b g)+b c f\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} (e f-d g) \left (a g^2-b f g+c f^2\right )}+\frac{e^3 \tanh ^{-1}\left (\frac{-2 a e+x (2 c d-b e)+b d}{2 \sqrt{a+b x+c x^2} \sqrt{a e^2-b d e+c d^2}}\right )}{(e f-d g) \left (a e^2-b d e+c d^2\right )^{3/2}}-\frac{g^3 \tanh ^{-1}\left (\frac{-2 a g+x (2 c f-b g)+b f}{2 \sqrt{a+b x+c x^2} \sqrt{a g^2-b f g+c f^2}}\right )}{(e f-d g) \left (a g^2-b f g+c f^2\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.443355, antiderivative size = 352, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 5, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.172, Rules used = {960, 740, 12, 724, 206} \[ -\frac{2 e \left (2 a c e+b^2 (-e)+c x (2 c d-b e)+b c d\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} (e f-d g) \left (a e^2-b d e+c d^2\right )}+\frac{2 g \left (2 a c g+b^2 (-g)+c x (2 c f-b g)+b c f\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} (e f-d g) \left (a g^2-b f g+c f^2\right )}+\frac{e^3 \tanh ^{-1}\left (\frac{-2 a e+x (2 c d-b e)+b d}{2 \sqrt{a+b x+c x^2} \sqrt{a e^2-b d e+c d^2}}\right )}{(e f-d g) \left (a e^2-b d e+c d^2\right )^{3/2}}-\frac{g^3 \tanh ^{-1}\left (\frac{-2 a g+x (2 c f-b g)+b f}{2 \sqrt{a+b x+c x^2} \sqrt{a g^2-b f g+c f^2}}\right )}{(e f-d g) \left (a g^2-b f g+c f^2\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 960
Rule 740
Rule 12
Rule 724
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{(d+e x) (f+g x) \left (a+b x+c x^2\right )^{3/2}} \, dx &=\int \left (\frac{e}{(e f-d g) (d+e x) \left (a+b x+c x^2\right )^{3/2}}-\frac{g}{(e f-d g) (f+g x) \left (a+b x+c x^2\right )^{3/2}}\right ) \, dx\\ &=\frac{e \int \frac{1}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx}{e f-d g}-\frac{g \int \frac{1}{(f+g x) \left (a+b x+c x^2\right )^{3/2}} \, dx}{e f-d g}\\ &=-\frac{2 e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt{a+b x+c x^2}}+\frac{2 g \left (b c f-b^2 g+2 a c g+c (2 c f-b g) x\right )}{\left (b^2-4 a c\right ) (e f-d g) \left (c f^2-b f g+a g^2\right ) \sqrt{a+b x+c x^2}}-\frac{(2 e) \int -\frac{\left (b^2-4 a c\right ) e^2}{2 (d+e x) \sqrt{a+b x+c x^2}} \, dx}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) (e f-d g)}+\frac{(2 g) \int -\frac{\left (b^2-4 a c\right ) g^2}{2 (f+g x) \sqrt{a+b x+c x^2}} \, dx}{\left (b^2-4 a c\right ) (e f-d g) \left (c f^2-b f g+a g^2\right )}\\ &=-\frac{2 e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt{a+b x+c x^2}}+\frac{2 g \left (b c f-b^2 g+2 a c g+c (2 c f-b g) x\right )}{\left (b^2-4 a c\right ) (e f-d g) \left (c f^2-b f g+a g^2\right ) \sqrt{a+b x+c x^2}}+\frac{e^3 \int \frac{1}{(d+e x) \sqrt{a+b x+c x^2}} \, dx}{\left (c d^2-b d e+a e^2\right ) (e f-d g)}-\frac{g^3 \int \frac{1}{(f+g x) \sqrt{a+b x+c x^2}} \, dx}{(e f-d g) \left (c f^2-b f g+a g^2\right )}\\ &=-\frac{2 e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt{a+b x+c x^2}}+\frac{2 g \left (b c f-b^2 g+2 a c g+c (2 c f-b g) x\right )}{\left (b^2-4 a c\right ) (e f-d g) \left (c f^2-b f g+a g^2\right ) \sqrt{a+b x+c x^2}}-\frac{\left (2 e^3\right ) \operatorname{Subst}\left (\int \frac{1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac{-b d+2 a e-(2 c d-b e) x}{\sqrt{a+b x+c x^2}}\right )}{\left (c d^2-b d e+a e^2\right ) (e f-d g)}+\frac{\left (2 g^3\right ) \operatorname{Subst}\left (\int \frac{1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac{-b f+2 a g-(2 c f-b g) x}{\sqrt{a+b x+c x^2}}\right )}{(e f-d g) \left (c f^2-b f g+a g^2\right )}\\ &=-\frac{2 e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt{a+b x+c x^2}}+\frac{2 g \left (b c f-b^2 g+2 a c g+c (2 c f-b g) x\right )}{\left (b^2-4 a c\right ) (e f-d g) \left (c f^2-b f g+a g^2\right ) \sqrt{a+b x+c x^2}}+\frac{e^3 \tanh ^{-1}\left (\frac{b d-2 a e+(2 c d-b e) x}{2 \sqrt{c d^2-b d e+a e^2} \sqrt{a+b x+c x^2}}\right )}{\left (c d^2-b d e+a e^2\right )^{3/2} (e f-d g)}-\frac{g^3 \tanh ^{-1}\left (\frac{b f-2 a g+(2 c f-b g) x}{2 \sqrt{c f^2-b f g+a g^2} \sqrt{a+b x+c x^2}}\right )}{(e f-d g) \left (c f^2-b f g+a g^2\right )^{3/2}}\\ \end{align*}
Mathematica [A] time = 1.61699, size = 317, normalized size = 0.9 \[ \frac{-\frac{2 e \left (-2 c (a e+c d x)+b^2 e+b c (e x-d)\right )}{\left (b^2-4 a c\right ) \sqrt{a+x (b+c x)} \left (e (b d-a e)-c d^2\right )}+\frac{2 g \left (-2 c (a g+c f x)+b^2 g+b c (g x-f)\right )}{\left (b^2-4 a c\right ) \sqrt{a+x (b+c x)} \left (g (b f-a g)-c f^2\right )}+\frac{e^3 \tanh ^{-1}\left (\frac{-2 a e+b (d-e x)+2 c d x}{2 \sqrt{a+x (b+c x)} \sqrt{e (a e-b d)+c d^2}}\right )}{\left (e (a e-b d)+c d^2\right )^{3/2}}-\frac{g^3 \tanh ^{-1}\left (\frac{-2 a g+b (f-g x)+2 c f x}{2 \sqrt{a+x (b+c x)} \sqrt{g (a g-b f)+c f^2}}\right )}{\left (g (a g-b f)+c f^2\right )^{3/2}}}{e f-d g} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.453, size = 1343, normalized size = 3.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (c x^{2} + b x + a\right )}^{\frac{3}{2}}{\left (e x + d\right )}{\left (g x + f\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (d + e x\right ) \left (f + g x\right ) \left (a + b x + c x^{2}\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]